y = int(input())
if (y % 100 != 0 and y % 4 == 0) or y % 400 == 0:
    print("Yes")
else:
    print("No")
